package com.zto.sch.base.thread;

import javax.sound.midi.Soundbank;
import java.sql.SQLOutput;

/**
 * @program: sch-diy-parent
 * @description:
 * @author: sch
 * @create: 2021-01-16 22:18
 **/
public class ThreadRunAndOverWrite {
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(new Runnable() {
            @Override
            public void run() {
                System.out.println("runnable...");
            }
        }) {
            @Override
            public void run() {
                System.out.println("thread...");
            }
        };
        t.start();
        t.join();
    }
}
